package com.dfrz.bookstore.entry;

import javax.xml.crypto.Data;
import java.util.Date;

/**
 * 类功能描述:
 *    购物车类
 * @Author keyan
 * @Date 2021/5/18 18:46
 */
public class ShoppingCar {
    private int id;             //购物车id
    private int userId;         //用户id
    private int bookNum;        //书本数量
    private String bookName;    //书本名字
    private double bookPrice;   //书本价格
    private int bookId;         //书本id
    private Date create_time;   //创建日期
    private Date update_time;   //更新日期


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getBookNum() {
        return bookNum;
    }

    public void setBookNum(int bookNum) {
        this.bookNum = bookNum;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public double getBookPrice() {
        return bookPrice;
    }

    public void setBookPrice(double bookPrice) {
        this.bookPrice = bookPrice;
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    @Override
    public String toString() {
        return "ShoppingCar{" +
                "id=" + id +
                ", userId=" + userId +
                ", bookNum=" + bookNum +
                ", bookName='" + bookName + '\'' +
                ", bookPrice=" + bookPrice +
                ", bookId=" + bookId +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                '}';
    }
}
